﻿using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace ProtoImaginer
{
    public class PageListViewModel : INotifyPropertyChanged
    {

        private String _thumb;
        public string Thumb
        {
            get
            {
                return _thumb;
            }
            set
            {
                if (value != _thumb)
                {
                    _thumb = value;
                    NotifyPropertyChanged("_thumb");
                }
            }
        }

        private string _pageName;

        public string PageName
        {
            get
            {
                return _pageName;
            }
            set
            {
                if (value != _pageName)
                {
                    _pageName = value;
                    NotifyPropertyChanged("_pageName");
                }
            }
        }

        private string _pageId;

        public string PageId
        {
            get
            {
                return _pageId;
            }
            set
            {
                if (value != _pageId)
                {
                    _pageId = value;
                    NotifyPropertyChanged("_pageId");
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}